package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.Department;
import com.woniu.smallmedical.entity.PageBean;

import java.util.List;

public interface DepartmentMapper {
    //查询所有科室
    List<Department> getAllDepartment();
    // 查询所有科室并分页
    List<Department> departmentList(PageBean pageBean);
//   查询所有科室数量
    int getCount();
//    修改科室状态
    int changeswitch(Department department);
    //    查询科室，带条件
    List<Department> departmentListByUrl(PageBean pageBean);
//    新增科室
    int addDepartment(Department department);
//    修改科室信息
    int changedepartmentListInfo(Department department);
    //    删除科室（状态值改为3）
    int deleteDepartment(Department department);
}
